#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2018 crane <crane@crane-pc>
#
# Distributed under terms of the MIT license.

"""

"""


class Solution:
    def checkPowerOf2(self, n):
        if n == 0:
            return False

        return (n & (n-1)) == 0


def main():
    print("start main")
    s =Solution()
    ret = s.checkPowerOf2(0)
    print(ret)

if __name__ == "__main__":
    main()
